#ifndef SECURITYINFOR_H
#define SECURITYINFOR_H

#include <QObject>
#include <mutex>
#include <QQueue>
#include <QPair>
#include "mytypes.h"
class SecurityInfor final:public QObject
{
    Q_OBJECT
public:
    static SecurityInfor* GetInstance(QObject* parent=nullptr);
    virtual ~SecurityInfor();

    void SubmitInfor(Yzty::ITEMCODE mcode,QVector<Yzty::BaceInfor*>& infors);

    const QVector<Yzty::BaceInfor*>& GetItemInfor(Yzty::ITEMCODE);
private:
    explicit SecurityInfor(QObject* parent=nullptr);
    static SecurityInfor* _instance;

private:
    std::mutex          _mutex;

    QVector<QVector<Yzty::BaceInfor*>>                      _infors;

};

#endif // SECURITYINFOR_H
